﻿CREATE TABLE [dbo].[UserLoginRecord] (
    [RecordID]      BIGINT         IDENTITY (1, 1) NOT NULL,
    [AddDate]       DATETIME       NOT NULL,
    [VisitPlatform] TINYINT        NULL,
    [LoginStatus]   TINYINT        NOT NULL,
    [IP]            VARCHAR (64)   NULL,
    [StayTime]      INT            NULL,
    [UserID]        BIGINT         NOT NULL,
    [OtherDetail]   NVARCHAR (MAX) NULL,
    [URI]           NVARCHAR (MAX) NULL,
    [LoginType]     TINYINT        NULL,
    [TenantID]      BIGINT         NULL,
    [Description]   NVARCHAR (200) NULL
);












GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'登录状态。0:失败;1:成功;2:注册', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'UserLoginRecord', @level2type = N'COLUMN', @level2name = N'LoginStatus';



